//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.controller
{
	import com.moorwind.gFeed.data.GFindResponse;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import reader.core.ReaderModelLocator;

	public class OpenSearchResultCommand extends SimpleCommand implements ICommand
	{
		//////////////////////////////////////////////////////////////////////////////
		//methods
		
		override public function execute(notification:INotification):void
		{
			var app:Reader = ReaderModelLocator.instance.airReader;
			var gFindResponse:GFindResponse = notification.getBody() as GFindResponse;
			app.feedSearchResult.gFindResponse = gFindResponse;
			app.blogViewStack.selectedChild = app.feedSearchResult;
		}
		
	}
}